class ChangeQuestionLimit < ActiveRecord::Migration
  def self.up
    change_column :assessments, :q1, :integer, :limit => 1
    change_column :assessments, :q2, :integer, :limit => 1
    change_column :assessments, :q3, :integer, :limit => 1
    change_column :assessments, :q4, :integer, :limit => 1
    change_column :assessments, :q5, :integer, :limit => 1
    change_column :assessments, :q6, :integer, :limit => 1
    change_column :assessments, :q7, :integer, :limit => 1
    change_column :assessments, :q8, :integer, :limit => 1
    change_column :assessments, :q9, :integer, :limit => 1
    change_column :assessments, :q10, :integer, :limit => 1
  end

  def self.down
    change_column :assessments, :q1, :integer, :limit => 2
    change_column :assessments, :q2, :integer, :limit => 2
    change_column :assessments, :q3, :integer, :limit => 2
    change_column :assessments, :q4, :integer, :limit => 2
    change_column :assessments, :q5, :integer, :limit => 2
    change_column :assessments, :q6, :integer, :limit => 2
    change_column :assessments, :q7, :integer, :limit => 2
    change_column :assessments, :q8, :integer, :limit => 2
    change_column :assessments, :q9, :integer, :limit => 2
    change_column :assessments, :q10, :integer, :limit => 2
  end
end
